.sgallerydiv {background: #fff; margin: 0 0 0 30px; padding: 0; float: left; text-align: center; border: 1px solid #999;}
.sgallerydiv ul {clear: both; list-style-type: none; background: transparent;}
.sgallerydiv ul li {background: transparent;}
.caption {color: #888877; font-style: italic; clear: both; display: block; margin: 5px auto; text-align:center!important; max-width: 350px;}
.demo{position: relative; margin-top: 2em;}
.sgallery_unstyled{padding: 0;}
.sgallery{width: 402px; margin: 0 auto; padding: 0;}
.sgallery li{float: left; width: 40px; height: 30px; line-height: 30px; text-align: center; padding: 2px; border: 1px solid silver; margin: 0 3px;}
.sgallery li img {vertical-align: middle;}
.sgallery li div .caption{font: italic 0.7em/1.4 georgia, serif;}
.sgallery li div{left: 240px;}
.galleria_wrapper {text-align: center!important;}
.sgallerynav{display: none; margin: 0 0 0 5px; clear: both; height: 25px; padding: 5px 0 0 0;}
.ref_l{float: left; width: 29%;}
#main_image {background: transparent; margin: 0 auto;}
#main_image img {margin: 5px;}